home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / network / if-down.d / resolvconf next >
Encoding:
Text File  |  2010-07-12  |  488 b   |  26 lines

  1. #!/bin/sh
  2. #
  3. # ifdown hook script for resolvconf
  4. #
  5. # Licensed under the GNU GPL.  See /usr/share/common-licenses/GPL.
  6. #
  7. # History
  8. # Jun 2003 - Apr 2004: Written by Thomas Hood <jdthood@yahoo.co.uk>
  9.  
  10. [ -x /sbin/resolvconf ] || exit 0
  11.  
  12. case "$ADDRFAM" in
  13.     inet|inet6) : ;;
  14.     *) exit 0 ;;
  15. esac
  16.  
  17. case "$METHOD" in
  18.     dhcp)
  19.         # Delete record left behind by TERMinated dhclient
  20.         # This works around bug #196865
  21.         /sbin/resolvconf -d "${IFACE}"
  22.         ;;
  23. esac
  24.  
  25. /sbin/resolvconf -d "${IFACE}.${ADDRFAM}"
  26.